package c.h.a.j0;

import android.os.Bundle;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import android.widget.Toast;
import com.liuzh.deviceinfo.DeviceInfoApp;
import com.liuzh.deviceinfo.card.DeviceOverviewOtherCard;

/* compiled from: TabDevice */
public class o0 extends h0 {
    public DeviceOverviewOtherCard W;
    public View X;

    public View G(LayoutInflater layoutInflater, ViewGroup viewGroup, Bundle bundle) {
        if (this.X == null) {
            View inflate = layoutInflater.inflate(2131493053, viewGroup, false);
            this.X = inflate;
            DeviceOverviewOtherCard deviceOverviewOtherCard = (DeviceOverviewOtherCard) inflate.findViewById(2131296429);
            this.W = deviceOverviewOtherCard;
            deviceOverviewOtherCard.setPermissionRequester(new l(this));
        }
        return this.X;
    }

    public void O(int i, String[] strArr, int[] iArr) {
        if (i != 1) {
            return;
        }
        if (iArr.length <= 0 || iArr[0] != 0) {
            Toast.makeText(k(), x(2131690181), 0).show();
        } else {
            this.W.d();
        }
    }

    public String r0() {
        return DeviceInfoApp.c.getResources().getString(2131690435);
    }
}
